]> dgit.raspbian.org Git - gnome-shell.git/commit
messageTray: Dispose Notification on destroy
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 14 May 2019 01:58:58 +0000 (03:58 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 16 Oct 2019 15:26:12 +0000 (15:26 +0000)
commited97f61750c808f25c835ac38a4969ff721191e7
tree261c75009d6861576dbfbe2b2866512e28c0a829
parentb5676a2a5cf7acaaef4e4f082727c7015fae379c
messageTray: Dispose Notification on destroy

When the notification is destroyed we should also dispose the underneath GLib
object, and ensure that we don't dispose this twice.

In order to avoid this, don't destroy transient notifications that have been
already been removed and only destroy the resident notifications on activation
if they have not been destroyed earlier.
Thus connect after to the 'activated' signal and once the default handler has
been called destroy the notification if not requested earlier.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559
js/ui/messageTray.js